<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="app" v-abc>hello</div>
    <div id="vm" v-abc>world</div>
    <script src="../vue.js"></script>
    <script>
        //全局指令
        Vue.directive('abc',{
            bind(el,binding,vNode){
                console.log(el);
            }
        })
        new Vue({
            el:'#app',
        })
        new Vue({
            el:'#vm',
        })
    </script>
</body>
</html>